|
|
|
|
|
|
|
As you can see in Table 18.2, the default option for RDC/RDOs is to allow rdoEngine to select the most appropriate cursor available. When rdUseIfNeeded is in place, RDC/RDOs attempt to use server-side cursors if they are available (rdUseServer or rdUseClientBatch if Batch mode is in force). If the RDBMS does not support server-side cursor management, RDC/RDOs use the client workstation cursor manager (rdUseOdbc). The rdUseNone option is used only if the value is explicitly selected. |
|
|
|
|
|
|
|
|
Again, the important thing to remember about cursor drivers is that they govern the way you can navigate the dataset. The other important aspect of cursor drivers is that, with RDC/RDOs, you can select the driver you prefer: client-side or server-side. The only caveat to all this is that the data source (RDBMS) must support your cursor request in order for you to be able to select certain server-side options. |
|
|
|
|
|
|
|
|
The selection of cursor drivers is just one of the options you must determine when accessing remote data. Another important parameter is the dataset type property of the connection. Several types of datasets can be returned by the remote data source. Table 18.3 outlines these types. |
|
|
|
|
| Table 18.3. Dataset type options with RDC/RDOs. | | Dataset Option | Integer Value | Description | | rdOpenForwardOnly | 0 | Creates a read-only, scroll-forward-only dataset. All members are copied to the client workstation for use. This is the default option. | | rdOpenStatic | 1 | Creates an updatable dataset that has non-changing membership. New records added to the set may (or may not) appear as part of the set, depending on the cursor driver. All members are copied to the client workstation for use. | | rdOpenDynamic | 2 | Creates an updatable dataset that has changing membership. New records added to the set will appear as part of the set. Actual data records are buffered to the client workstation as needed. Record keys are not used. | | rdOpenKeyset | 3 | Creates an updatable dataset that has changing membership. New records added to the set will appear as part of the set. Actual data records are buffered to the client workstation as needed. Record keys (the key set) are created to point to all members of the set. This enables you to use bookmarks with the dataset. |
|
|
|